package demo.admin.common;


/**
 * 返回code
 *
 */

public enum ResultCode {
    // 成功
    SUCCESS(0, "操作成功"),


    FAILED_INVALID_PWD(500,"账号或密码错误"),
    FAILED_NOT_LOGIN(501,"未登录"),
    FAILED_TOKEN_EXPIRE(501,"token过期"),
    FAILED_DUPLICATE_ID(40001,"ID重复"),


    SYSTEM_BUSY(9999, "system busy");

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
